package cn.wolfcode.crm.query;

import lombok.Data;
import org.springframework.util.StringUtils;

@Data
public class CustomerQuery extends QueryObject {
    private Integer status = -1;//客户状态值
    private Long sellerId = -1L;//销售人员id
    private String keyword;

    public String getKeyword() {
        //如果传的是空字符串的话就返回null    就不查
        return StringUtils.hasLength(keyword) ? keyword.trim() : null;
    }
}
